<!DOCTYPE html>
<html lang="en">
<head>
	<title></title>
	<meta charset="UTF-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<link rel="stylesheet" href="__CSS__/bootstrap.min.css"/>
	<link rel="stylesheet" href="__CSS__/bootstrap-responsive.min.css"/>
	<link rel="stylesheet" href="__CSS__/uniform.css"/>
	<style>
		.control-group .controls label {
			display: inline-block;
		}

		ul, li {
			list-style: none;
		}

		.form-horizontal label {
			display: inline-block;
		}

		.form-actions {
			background-color: white;
			border: none;
		}
	</style>
</head>
<body>
<div id="content">
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content tab-content">
						<div id="tab1" class="tab-pane active">
							<div class="widget-content nopadding" style="margin-top: 15px;">
								<form action="__ACTION__" method="post" class="form-horizontal" enctype="multipart/form-data" id="form_basic_validate">
									<div class="control-group">
										<label class="control-label">所属企业 :</label>
										<div class="controls">
											<select name="company_id" class="span3" id="company_id">
												<option value="0">请选择企业</option>
												<volist name="company_list" id="data">
													<option value="{#$data.id}" data-input-name="{#$data.card_type}"
													<if condition="$info.c_company_id == $data[id]">selected</if>
													>{#$data.company_name}</option>
												</volist>
											</select>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">导入{#$msg}excel :</label>
										　<input type="file" id="upload" name="upload"/> <br/>
										<a href="javascript:;" style="text-decoration: underline" onclick="downFile()"><i class="icon-download"></i> 下载模板文件</a>
									</div>
									<div class="form-actions">
										<input name="type" value="{#$type}" style="display: none">
										<button type="submit" class="btn btn-success">保存</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
		<hr>
	</div>
</div>
</div>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/jquery.ui.custom.js"></script>
<script src="__JS__/jquery.uniform.js"></script>
<script src="__JS__/select2.min.js"></script>
<script src="__JS__/matrix.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script src="__PUBLIC__/js/Validform.min.js"></script>
<script>
$('#c_id').change(function() {
	var url = '/Manage.php/Public/getBuilding?c_id=' + $('#c_id').val();
	$.get(url, function(data) {
		$('#buildingInfo').html(data);
	});
});

function downFile() {
	var url = '<?php echo $down_url?>';
	console.log(url)
	window.location.href = url;
}
</script>
<script type="text/javascript">

$(function() {
	$('input[type=file]').uniform();
})
</script>
</body>
</html>
